.\" Manual page by Steven Boyd, 5/12/2010 
.\" Updates by Berkeley Churchill, 5/25/2010

.TH latexcalc 1 "12 May 2010" "Version 1.3"
.SH NAME
.B latexcalc \- evaluates selected expressions in LaTeX markup.
.SH SYNOPSIS
.B latexcalc
.RB [ -o 
.IR file ]
.RB [ -h | --help ]
.RB [ --tex | --latex | --pdftex | --pdflatex | --command
.IR string ]
.RI [ file ]
.SH DESCRIPTION
This  manual page is not meant to be exhaustive and assumes the user has knowledge of the 
.I TeX
family of typesetting applications.

.B latexcalc
reads a .tex file and evaluates certain expressions wrapped in a \\solver command.  It will output the answer of the last \\solver command whenever it encounters an  \\answer command.  For example, the input "\\solver{2+3} = \\answer" is typeset as "2+3 = 5".
.B latexcalc
only evaluates expressions that appear unambiguous and well-defined.  Formatting is generally ignored.  

If no options are specified it reads from stdin and prints the resulting .tex file to stdout.  Otherwise 
.B latexcalc
will output or compile your file as requested.  For a full details of the 
.B latexcalc 
language, including examples, please see:

https://code.google.com/p/latexcalc/wiki/UserDocumentation
.SH OPTIONS
.TP 25
.BI -o " file"
Specifies the output file to print the resulting .tex file to.
.TP
.B -h|--help
Displays the help page
.TP
.B --tex
typesets the resulting .tex file with 
.IR tex .
If an input file is specified the output file with have the same prefix as the input.
.TP
.B --latex
typesets the resulting .tex file with 
.IR latex .
If an input file is specified the output file with have the same prefix as the input.
.TP
.B --pdftex
typesets the resulting .tex file with 
.IR pdftex .
If an input file is specified the output pdf file with have the same prefix as the input.
.TP
.B --pdflatex
typesets the resulting .tex file with 
.IR pdflatex .
If an input file is specified the output pdf file with have the same prefix as the input.
.TP
.BI --compile " string"
Will run the command in 
.I string
after 
.B latexcalc
is done processing the file. It will append the name of the processed .tex file as the last argument to 
.IR string .
.TP
.I file
Specifies an input file.
.SH EXAMPLE
.B latexcalc
--pdflatex
.I in.tex

This will process the file 
.I in.tex
then typeset it with 
.IR pdflatex .
The resulting pdf will be called 
.IR in.pdf .
.SH AUTHORS
LaTeXCalc was created by Berkeley Churchill 
.RI < berkeleychurchill@gmail.com >
with invaluable assistance and advice from Steven Boyd.
.SH BUGS
At the time of release, no bugs are known.  You can find our issue tracker at

https://code.google.com/p/latexcalc/issues/list

to view current issues and report bugs.

.SH "SEE ALSO"
.BR tex (1),
.BR latex (1),
.BR pdftex (1),
.BR pdflatex (1).

